<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?
  include "conexao.php" ;
  $conec ;
  $bco ;
  
  $login = $_POST['txlogin'] ;
  $senha = $_POST['txsenha']  ;
  $nome = $_POST['txnome']  ;
  $email = $_POST['txemail']  ;

  include "cabecalho.php" ;
	
  $stgsql = $conec->prepare("update usu 
								set username=\"$login\",
								senha=\"$senha\",
								nome=\"$nome\",
								email=\"$email\"
						    where username = \"$login\"");  
   $stgsql->execute();
	
   if ($stgsql->rowCount() > 0) {
	  include "sucessoalteracao.php" ;
   } else {
	  include "erroalteracao.php" ;
   }
			
   include "rodape.php" ;

?>
</body>
</html>
